// JavaScript Document

$(document).ready(function(){
	
	
	$.ajax({
  		type: "post",
 		url: "hmk/getGoodType_getGoodType.action",
  		success:function(data){
  			$.each(data.gtList,function(i,n){
  				$("<option value="+n.gtId+">"+n.gtName+"</option>").appendTo('#gtID');
			});
  		}
	});
	
	//新增应急物资
	$('#ADD_wuzhi_TOP').click(function(){
		$('#mainFrame',window.parent.document).attr('src','/ag/hmk/wuzhiAdd.jsp');
	});

	//导航到物资库管理	
	$('#gotoWUKU').click(function(){
		$('#topFrame',window.parent.document).attr('src','/ag/hmk/AidGoodsTop.jsp');
		$('#mainFrame',window.parent.document).attr('src','/ag/hmk/AidGoodsMain.jsp');
	});
	
	//查询物资
	$('#FIND_good_ID').click(function(){
		$('#mainFrame',window.parent.document).attr('src','/ag/hmk/wuzhiMain.jsp');
	});
	
});